package com.sise.dubbo.service;

import com.sise.dubbo.common.PaginationRespBO;
import com.sise.dubbo.common.ServiceException;
import com.sise.dubbo.model.User;

/**
 * @author hao_lin
 * @data 2018/10/9 17:36
 */
public interface TestUserService {

    /**
     * 打印内容
     *
     * @param str
     * @return
     */
    String printStr(String str);

    /**
     * 查询全部信息
     *
     * @return
     */
    PaginationRespBO<User> findAll(int page) throws ServiceException;

    /**
     * 用户名查询
     *
     * @param username
     * @return
     */
    PaginationRespBO<User> findByUsername(String username,int page) throws ServiceException;
}
